#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Author:liang futing
#@Time :2019/4/4 10:16

from django.urls import path,re_path
from web.views import customer
from web.views import payment
from web.views import account

app_name='web'

urlpatterns=[
    #customer url
    re_path(r'^login/$',account.login,name='login'),
    re_path(r'^logout/$',account.login,name='logout'),
    re_path(r'^customer/list/$',customer.customer_list,name='customer_list'),
    re_path(r'^customer/add/$',customer.customer_add,name='customer_add'),
    re_path(r'^customer/edit/(?P<pk>\d+)/$',customer.customer_edit,name='customer_edit'),
    re_path(r'^customer/del/(?P<pk>\d+)/$',customer.customer_del,name='customer_del'),
    re_path(r'^customer/import/$',customer.customer_import,name='customer_import'),
    re_path(r'^customer/tpl/$',customer.customer_tpl,name='customer_tpl'),
    #payment url
    re_path(r'^payment/list/$',payment.payment_list,name='payment_list'),
    re_path(r'^payment/add/$',payment.payment_add,name='payment_add'),
    re_path(r'^payment/edit/(?P<pk>\d+)/$',payment.payment_edit,name='payment_edit'),
    re_path(r'^payment/del/(?P<pk>\d+)/$',payment.payment_del,name='payment_del'),
]